package com.docMan.dao.pojo;

/**
 * Tchumanrole entity. @author MyEclipse Persistence Tools
 */

public class Tchumanrole implements java.io.Serializable {

	// Fields
	private Integer humanid;
	private Integer roleid;

	// Constructors

	public Tchumanrole(Integer humanid, Integer roleid) {
		super();
		this.humanid = humanid;
		this.roleid = roleid;
	}

	public Integer getHumanid() {
		return humanid;
	}

	public void setHumanid(Integer humanid) {
		this.humanid = humanid;
	}

	public Integer getRoleid() {
		return roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	/** default constructor */
	public Tchumanrole() {
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((humanid == null) ? 0 : humanid.hashCode());
		result = prime * result + ((roleid == null) ? 0 : roleid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Tchumanrole other = (Tchumanrole) obj;
		if (humanid == null) {
			if (other.humanid != null)
				return false;
		} else if (!humanid.equals(other.humanid))
			return false;
		if (roleid == null) {
			if (other.roleid != null)
				return false;
		} else if (!roleid.equals(other.roleid))
			return false;
		return true;
	}

}